//
//  goodsTableViewCell.m
//  goods
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "goodsTableViewCell.h"

@implementation goodsTableViewCell


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setGm:(goodsModel *)gm
{
    _gm = gm;
    self.imageView.image = [UIImage imageNamed:gm.images];
    self.nameLabel.text = gm.productName;
    self.priceLabel.text = gm.price;
    self.rowLabel.text = gm.descriptio;
    self.monthBuyLabel.text = gm.forsale;
    self.saleCount.text = gm.saleCount;
}
@end
